home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / vision / povray / level3 / wealth.pov < prev    next >
Encoding:
Text File  |  1995-11-25  |  3.1 KB  |  150 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Tom Price
  4. // Modification to two-layer wood texture by Dan Farmer 01/92
  5. // Image should be run at 640x480 or greater to take full advantage of
  6. // the wood texture, preferably with a rather tight anti-aliasing threshold.
  7. // Also commented out the random dithering values and bounded the coin
  8. // object.
  9.  
  10. #include "colors.inc"
  11. #include "shapes.inc"
  12. #include "textures.inc"
  13.  
  14. // a dark wood with a greenish hue to it
  15. #declare New_Dark_Wood1 = pigment {
  16.    wood
  17.    turbulence 0.02
  18.    colour_map {
  19.       [0.0 0.8  colour red  0.42857 green 0.23810 blue 0.04762
  20.                 colour red  0.42857 green 0.23810 blue 0.04762]
  21.       [0.8 1.01 colour red 0.4 green 0.333 blue 0.066
  22.                 colour red 0.2 green 0.033 blue 0.033]
  23.    }
  24. }
  25.  
  26. // Overlaying woodgrain
  27. #declare New_Dark_Wood2 = pigment {
  28.    wood
  29.    turbulence 0.022
  30.    colour_map {
  31.       [0.0 0.5  colour Clear  colour Clear]
  32.       [0.5 1.01 colour red 0.4 green 0.333 blue 0.066 filter 0.5
  33.                 colour red 0.2 green 0.033 blue 0.033 filter 0.25]
  34.    }
  35. }
  36.  
  37. camera {
  38.    location <0.0, 75.0, -100.0>
  39.    direction <0.0, -0.5, 1.0>
  40.    up <0.0, 1.0, 0.0>
  41.    right <4/3, 0.0, 0.0>
  42. }
  43.  
  44. plane {
  45.    y, -10
  46.  
  47.    texture {
  48.       pigment {
  49.          New_Dark_Wood1
  50.          scale <.25, .25, 1>
  51.          rotate 90*y
  52.          quick_color Brown
  53.       }
  54.       finish {
  55.          ambient 0.8
  56.          diffuse 0.2
  57.          reflection 0.4
  58.          brilliance 3.0
  59.       }
  60.    }
  61.  
  62.    texture {
  63.       pigment {
  64.          New_Dark_Wood2
  65.          scale <.25, .25, 1>
  66.          rotate <0, 90, 1.5>
  67.          quick_color Brown
  68.       }
  69.    }
  70. }
  71.  
  72. plane {
  73.    y, 200
  74.  
  75.    texture {
  76.       pigment { color blue 0.5 red 0.2 green 0.2 }
  77.       finish {
  78.          ambient 0.5
  79.          diffuse 0.5
  80.       }
  81.    }
  82. }
  83.  
  84. light_source { <60.0, 100.0, -110.0> color White }
  85.  
  86. light_source { <-60.0, 100.0, -110.0> color LightGray }
  87.  
  88.  
  89. #declare Coin = intersection {
  90.    object { Cylinder_Y scale <20.0, 1.0, 20.0> }
  91.    plane { y, 1 }
  92.    plane { y, -1 inverse }
  93.  
  94.    bounded_by { sphere { <0, 0, 0> 21} }
  95.  
  96.    texture { 
  97.       pigment { color red 1.0 green 0.89 blue 0.55 }
  98.       finish {
  99.          ambient 0.2  diffuse 0.6
  100.          reflection 0.6
  101.          brilliance 4.0
  102.          specular 0.5
  103.          metallic
  104.       }
  105.    }
  106. }
  107.  
  108. object {
  109.    Coin
  110.    rotate <-15.0, 0.0, -2.0>
  111.    translate <-27.0, -2.0, -3.0>
  112. }
  113.  
  114. object {
  115.    Coin
  116.    rotate -15.0*x
  117.    translate <-28.0, 3.0, 2.0>
  118. _Y scale <20.0, 1.0, 20.0> }
  119.    plane { y, 1 }
  120.    plane { y, -1 inverse }
  121.  
  122.    bounded_by { sphere { <0, 0, 0> 21} }
  123.  
  124.    texture { 
  125.       pigment { color red 1.0 green 0.89 blue 0.55 }
  126.       finish {
  127.          ambient 0.2  diffuse 0.6
  128.          reflection 0.6
  129.          brilliance 4.0
  130.          specular 0.5
  131.          metallic
  132.       }
  133.    }
  134. }
  135.  
  136. object {
  137.    Coin
  138.    rotate <-15.0, 0.0, -2.0>
  139.    translate <-27.0, -2.0, -3.0>
  140. }
  141.  
  142. object {
  143.    Coin
  144.    rotate -15.0*x
  145.    translate <-28.0, 3.0, 2.0>
  146. _Y scale <20.0, 1.0, 20.0> }
  147.    plane { y, 1 }
  148.    plane { y, -1 inverse }
  149.  
  150.    bounded_by { sphere { <0, 0, 0> 21} }
  151.  
  152.